package 流的使用;

import jdk.internal.net.http.hpack.Huffman;

import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException {
		//InputStream inputStream1 = new InputStream().read();
		//InputStream inputStream2 = new Reader().read();
		//new OutputStream().write();
		//new Writer().write();
		// 把inputStream 转换为 reader
		InputStreamReader reader = new InputStreamReader(new ByteArrayInputStream(new byte[]{1,2,2,}));
		reader.read();

		FileInputStream stream = new FileInputStream(new File("index.txt"));


	}
}
